﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DMHelper.Models
{
    public class CombatContainer
    {
        public Dictionary<String, WeaponContainer> Weapons = new Dictionary<String,WeaponContainer>(4);
        public baseBABContainer baseAttackBonus = new baseBABContainer();
        public NumericalField MaxHP = new NumericalField();
        public NumericalField currentHP = new NumericalField();
        public AdditionNumericalField AttackBonus = new AdditionNumericalField();

        public void AddWeapon(WeaponContainer w, String ID)
        {
            w.AttackBonus = new refBABContainer(baseAttackBonus);
            Weapons.Add(ID, w);
        }

        public WeaponContainer Weapon(String ID)
        {
            return Weapons[ID];
        }
    }
}